package com.jtjrenren.android.taxi.driver;

/**
 * Created by Administrator on 2016/2/26.
 */
public class Constants {
    //DES加密相关配置
    public static String CONFIG_DES_KEY = "87920770";
    public static byte[] CONFIG_DES_IV = {0x12, 0x34, 0x56, 0x78, (byte) 0x90,
            (byte) 0xAB, (byte) 0xCD, (byte) 0xEF};


    //司机相关的默认值
    public static final int DEF_DRIVER_TYPE_TAXI = 1;
    public static final int DEF_DRIVER_TYPE_SPECAR = 2;


    // 车的状态
    public static final int STATUS_CAR_ZTK = 0;  //重转空
    public static final int STATUS_CAR_KTZ = 1; //空转重
    public static final int STATUS_CAR_KC = 2; //空车
    public static final int STATUS_CAR_ZC = 3; //重车

    //订单的状态
    public static final int STATUS_ORDER_CREATE = 0;//订单刚创建，抢单成功后的状态
    public static final int STATUS_ORDER_QJCK = 1; //去接乘客
    public static final int STATUS_ORDER_CKSC = 2;//乘客上车
    public static final int STATUS_ORDER_FINISH = 3; //订单完成,但是还没有费用信息
    public static final int STATUS_ORDER_CANCLE = 4; //订单取消

    //订单支付状态
    public static final int STATUS_ORDER_PAY_YES = 1; //订单已经支付
    public static final int STATUS_ORDER_PAY_NO = 0; //订单未支付
    public static final int STATUS_ORDER_PAY_NOTCOMMIT = -1; //订单未提交用户支付

    public static final int TYPE_ORDER_JS = 0; //即时召车
    public static final int TYPE_ORDER_YY = 1; //预约召车


    public static final int TYPE_PAY_XJ = 2; //现金支付
    public static final int TYPE_PAY_TJCK = 1; //提交乘客付费


    public static final int TYPE_PAY_YHK = 4; //银行卡
    public static final int TYPE_PAY_ZFB = 1; //支付宝


    public static final int STATUS_DUTY_ON = 0; //上班
    public static final int STATUS_DUTY_OFF = 1; //下班

    public static final int STATUS_RESULT_SUCCESS = 1; //api返回的正确为1
    public static final int STATUS_RESULT_FAIL = 0; //api返回的正确为1


    /*广播action--调度相关*/
    public static final String ACTION_CONTROL_RESPONSE_COMMON = "control_common";
    public static final String ACTION_CONTROL_RESPONSE_COST = "control_cost";
    public static final String ACTION_CONTROL_RESPONSE_PASPAYRESULT = "control_paspay";
    public static final String ACTION_CONTROL_RESPONSE_QDRESULT = "control_qdresult";
    public static final String ACTION_CONTROL_RESPONSE_QRCKSC = "control_qrcksc";
    public static final String ACTION_CONTROL_RESPONSE_QJCK = "control_qjck";
    public static final String ACTION_CONTROL_RESPONSE_QZXB = "control_qzxb";
    public static final String ACTION_CONTROL_RESPONSE_XD = "control_xd";
    public static final String ACTION_CONTROL_RESPONSE_ZXQXDD = "control_zxqxdd";
    public static final String ACTION_CONTROL_RESPONSE_OTHERDUTYON = "control_otherdutyon"; //其他设备登陆了


    public static final String SP_DRIVER_REMBER = "rember_driver";
    public static final String SP_DRIVER_LASTLOGIN = "last_login_phone";
    public static final String SP_DRIVER_DUTY_ORDERCOUNT = "duty_ordercount"; //抢单成功数量


    public static final int CODE_ATY_REGISTER = 0;
    public static final int CODE_ATY_FORGETPWD = 1;
    public static final int CODE_ATY_LOGIN = 2;
    public static final int CODE_ATY_ORDERPAY = 3;
}
